package arrage;

import java.util.ArrayList;

public class clsss {
    public static void main(String[] args) {
        ArrayList<String> list=new ArrayList<>();
        System.out.println(list);//直接打印内容为空，得到的是[]
        System.out.println("=================");
        list.add("wo ai ni");
        System.out.println(list);//[wo ai ni]
        System.out.println("=================");
        list.add("i love china");
        list.add("china long age");
        System.out.println(list);//[wo ai ni, i love china, china long age]
    }
}
